﻿<UserControl x:Class="DataInterpolator.View.IsoPlotsView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:DataInterpolator.View"
      xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf"
      xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d"
      d:DesignHeight="604.861" d:DesignWidth="1051.259" Background="White"
      DataContext="{Binding IsoPlots, Source={StaticResource Locator}}">
   <Grid x:Name="LayoutRoot" Margin="5">
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto" />
         <RowDefinition />
      </Grid.RowDefinitions>
      <GroupBox Header="Options" Grid.Row="0" Grid.ColumnSpan="1" Margin="5,5,5,5">
         <Grid>
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="115" />
               <ColumnDefinition Width="*" />
               <ColumnDefinition Width="115" />
               <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock Text="Top Formation" TextTrimming="CharacterEllipsis"
                  Padding="2,3,0,0" Height="23" VerticalAlignment="Top" />
            <ComboBox VerticalAlignment="Top" HorizontalContentAlignment="Stretch"
                  ItemsSource="{Binding FormationOptions}"
                  SelectedValue="{Binding TopFormationChoice}" Grid.Column="1"
                  Margin="5,0" />
            <TextBlock Text="Bottom Formation" TextTrimming="CharacterEllipsis"
                  Padding="2,3,0,0" Height="23" VerticalAlignment="Top" Grid.Column="2" />
            <ComboBox VerticalAlignment="Top" HorizontalContentAlignment="Stretch"
                  ItemsSource="{Binding FormationOptions}"
                  SelectedValue="{Binding BotFormationChoice}" Grid.Column="3"
                  Margin="5,0" />
         </Grid>
      </GroupBox>
      <TabControl Grid.Row="1">
         <TabItem Header="Time Depth">
            <oxy:PlotView Model="{Binding TimeDepthViewModel, Mode=OneWay}" />
         </TabItem>
         <TabItem Header="IsoTime vs. IsoPach">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition />
                  <ColumnDefinition Width="Auto" />
               </Grid.ColumnDefinitions>
               <oxy:PlotView Model="{Binding TimePachViewModel, Mode=OneWay}" />
               <Expander Grid.Column="1" ExpandDirection="Left"
                     HorizontalAlignment="Right">
                  <Expander.Header>
                     <TextBlock Text="Plot Statistics" VerticalAlignment="Center">
                        <TextBlock.LayoutTransform>
                           <RotateTransform Angle="-90" />
                        </TextBlock.LayoutTransform>
                     </TextBlock>
                  </Expander.Header>
                  <Expander.Content>
                     <Grid>
                        <Grid.ColumnDefinitions>
                           <ColumnDefinition Width="*" MinWidth="5" />
                           <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <GridSplitter Grid.Column="0" ResizeDirection="Columns" Width="5"
                              ResizeBehavior="CurrentAndNext" />
                        <xctk:PropertyGrid ShowSearchBox="False"
                              SelectedObject="{Binding Stats.TimePach, Mode=OneWay}"
                              IsMiscCategoryLabelHidden="True" IsReadOnly="True"
                              IsCategorized="False" ShowSortOptions="False"
                              ShowDescriptionByTooltip="True"
                              SelectedObjectName="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TabItem}}}"
                              SelectedObjectTypeName="Iso Plot Stats" Grid.Column="1"
                              NameColumnWidth="100" />
                     </Grid>
                  </Expander.Content>
               </Expander>
            </Grid>
         </TabItem>
         <TabItem Header="IsoTime vs. Int. Vel.">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition />
                  <ColumnDefinition Width="Auto" />
               </Grid.ColumnDefinitions>
               <oxy:PlotView Model="{Binding TimeVelViewModel, Mode=OneWay}" />
               <Expander Grid.Column="1" ExpandDirection="Left"
                     HorizontalAlignment="Right">
                  <Expander.Header>
                     <TextBlock Text="Plot Statistics" VerticalAlignment="Center">
                        <TextBlock.LayoutTransform>
                           <RotateTransform Angle="-90" />
                        </TextBlock.LayoutTransform>
                     </TextBlock>
                  </Expander.Header>
                  <Expander.Content>
                     <Grid>
                        <Grid.ColumnDefinitions>
                           <ColumnDefinition Width="*" MinWidth="5" />
                           <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <GridSplitter Grid.Column="0" ResizeDirection="Columns" Width="5"
                              ResizeBehavior="CurrentAndNext" />
                        <xctk:PropertyGrid ShowSearchBox="False"
                              SelectedObject="{Binding Stats.TimeVel, Mode=OneWay}"
                              IsMiscCategoryLabelHidden="True" IsReadOnly="True"
                              IsCategorized="False" ShowSortOptions="False"
                              ShowDescriptionByTooltip="True"
                              SelectedObjectName="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TabItem}}}"
                              SelectedObjectTypeName="Iso Plot Stats" Grid.Column="1"
                              NameColumnWidth="100" />
                     </Grid>
                  </Expander.Content>
               </Expander>
            </Grid>
         </TabItem>
         <TabItem Header="IsoPach vs. Int. Vel.">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition />
                  <ColumnDefinition Width="Auto" />
               </Grid.ColumnDefinitions>
               <oxy:PlotView Model="{Binding PachVelViewModel, Mode=OneWay}" />

               <Expander Grid.Column="1" ExpandDirection="Left"
                     HorizontalAlignment="Right">
                  <Expander.Header>
                     <TextBlock Text="Plot Statistics" VerticalAlignment="Center">
                        <TextBlock.LayoutTransform>
                           <RotateTransform Angle="-90" />
                        </TextBlock.LayoutTransform>
                     </TextBlock>
                  </Expander.Header>
                  <Expander.Content>
                     <Grid>
                        <Grid.ColumnDefinitions>
                           <ColumnDefinition Width="*" MinWidth="5" />
                           <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <GridSplitter Grid.Column="0" ResizeDirection="Columns" Width="5"
                              ResizeBehavior="CurrentAndNext" />
                        <xctk:PropertyGrid ShowSearchBox="False"
                              SelectedObject="{Binding Stats.PachVel, Mode=OneWay}"
                              IsMiscCategoryLabelHidden="True" IsReadOnly="True"
                              IsCategorized="False" ShowSortOptions="False"
                              ShowDescriptionByTooltip="True"
                              SelectedObjectName="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TabItem}}}"
                              SelectedObjectTypeName="Iso Plot Stats" Grid.Column="1"
                              NameColumnWidth="100" />
                     </Grid>
                  </Expander.Content>
               </Expander>
            </Grid>
         </TabItem>
      </TabControl>
   </Grid>
</UserControl>
